#!/bin/sh
# 将app.jar修改为自己的jar包名
PID=$(ps -ef | grep /home/work/ai-cat/ai-cat.jar | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo app is already stopped
else
echo kill $PID
kill $PID
fi

